/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VistaPosiciones.java
 *
 * Created on 21/16/2011, 06:59:52 PM
 */

package Vista;

import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;


public class VistaPosiciones extends javax.swing.JFrame {
    /** Creates new form VistaPosiciones */
    public VistaPosiciones() {
        initComponents();
    }


    public void mostrarMensaje(String s){
            JOptionPane.showMessageDialog(null,	s,"Futbol",JOptionPane.INFORMATION_MESSAGE);
    }

    public JTable getGrilla() {
        return grilla;
    }


    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jScrollPane2 = new javax.swing.JScrollPane();
        grilla = new javax.swing.JTable();

        getContentPane().setLayout(null);

        grilla.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        grilla.setColumnSelectionAllowed(false);
        grilla.setRowSelectionAllowed(false);
        grilla.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.white));
        grilla.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(grilla);

        getContentPane().add(jScrollPane2);
        jScrollPane2.setBounds(20, 30, 950, 360);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-987)/2, (screenSize.height-450)/2, 987, 450);
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VistaPosiciones().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JTable grilla;
    private javax.swing.JScrollPane jScrollPane2;
    // End of variables declaration//GEN-END:variables

}
